x86/emulator: generalize movq emulation (SSE2 and AVX variants)
authorJan Beulich <jbeulich@suse.com>
Thu, 1 Dec 2011 07:48:14 +0000 (08:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 1 Dec 2011 07:48:14 +0000 (08:48 +0100)
commit11c35f84b53622c429071049b830bb9b7a880eff
tree63087f7a28dddc2acf531075ab36ca56dff4b50f
parentb6cf65cf7aeb21cea11075da268563fca22ede9c
x86/emulator: generalize movq emulation (SSE2 and AVX variants)

Extend the existing movq emulation to also support its SSE2 and AVX
variants, the latter implying the addition of VEX decoding. Fold the
read and write cases (as most of the logic is identical), and add
movntq and variants (as they're very similar).

Extend the testing code to also exercise these instructions.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
tools/tests/x86_emulator/test_x86_emulator.c
xen/arch/x86/hvm/emulate.c
xen/arch/x86/x86_emulate/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h
xen/include/asm-x86/cpufeature.h